package com.share.shareplatform.common.state;

public enum OrderType {
    BUY("购买"),RENT("租用");

    private String type;

    OrderType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static boolean search(String type){
        for(OrderType orderType:OrderType.values()){
            if(orderType.getType().equals(type)){
                return true;
            }
        }
        return false;
    }
}
